<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>8 模板语法-指令</title>
    <script src="js/vue.global.js"></script>
</head>
<body>
<div id="app">
    <ol>
        <li v-for="site in sites">
            {{ site.text }}
        </li>
    </ol>
</div>
<script>
    const app = {
        data() {
            return {
                sites: [
                    { text: 'Google' },
                    { text: 'Runoob' },
                    { text: 'Taobao' }
                ]
            }
        }
    }

    Vue.createApp(app).mount('#app')
</script>
</body>
</html>